package org.go.examples.example_13;

public class Main {

	public static void main(String[] args) throws Exception {
		// Prepares the task.
		MyTask task = new MyTask();
		// Creates the scheduler.
		//Scheduler scheduler = new Scheduler();
		// Schedules the task, once every minute.
		String cron = "*/5 * * * * ?"; //once every 5 seconds.
		//scheduler.schedule(cron, task);
		// Starts the scheduler.
		//scheduler.start();
		// Stays alive for five minutes.
		try {
			Thread.sleep(5L * 60L * 1000L);
		} catch (InterruptedException e) {
			;
		}
		// Stops the scheduler.
		//scheduler.stop();
	}

}
